class Equipment < ActiveRecord::Base
  belongs_to :customer

def self.search(search)
  search_condition = "%" + search + "%"
  find(:all, :conditions => ['model LIKE ? OR brand LIKE ? OR category LIKE ? OR description LIKE ? OR uniqueid LIKE ? OR size LIKE ?', search_condition, search_condition, search_condition, search_condition, search_condition, search_condition])
end

end

